package effectiveJava.reflect;

import lombok.Data;

@Data
public class EntityModel extends BaseEntity {
    private String privateParam;
    private final static String privateStaticParam = null;
    protected String protectedParam;
    String param;
    public String publicParam;
    int age;
    private static String privateStaticParam2 = null;


    private void privateMethod() {
        System.out.println("privateMethod invoke");
    }

    public void publicMethod() {
        System.out.println("publicMethod invoke");
    }

    protected void protectedMethod() {
        System.out.println("protectedMethod invoke");
    }

    public EntityModel() {
        System.out.println("contractor invoke");
    }

    @Override
    public String toString() {
        return "EntityModel{" +
                "privateParam='" + privateParam + '\'' +
                ", protectedParam='" + protectedParam + '\'' +
                ", param='" + param + '\'' +
                ", publicParam='" + publicParam + '\'' +
                ", age=" + age + ", privateStaticParam2="+privateStaticParam2+
                '}';
    }
}
